@echo off

:: 创建主目录
mkdir src
cd src

:: 创建主入口文件
type nul > index.mjs

:: 创建core目录及文件
mkdir core
mkdir core\templates
type nul > core\PromptManager.mjs
type nul > core\SearchEngine.mjs
type nul > core\Logger.mjs
type nul > core\templates\expert.mjs
type nul > core\templates\reasoning.mjs
type nul > core\templates\system.mjs

:: 创建prompts目录及文件
mkdir prompts\expert
mkdir prompts\system
mkdir prompts\templates
type nul > prompts\expert\academic.mjs
type nul > prompts\expert\technical.mjs
type nul > prompts\system\default.mjs
type nul > prompts\system\strict.mjs
type nul > prompts\templates\analysis.mjs
type nul > prompts\templates\conversation.mjs

:: 创建services目录及文件
mkdir services
type nul > services\PromptService.mjs
type nul > services\SearchService.mjs
type nul > services\LogService.mjs

:: 创建utils目录及文件
mkdir utils
type nul > utils\prompt.mjs
type nul > utils\time.mjs
type nul > utils\search.mjs
type nul > utils\logger.mjs

:: 创建config目录及文件
mkdir config
type nul > config\index.mjs
type nul > config\default.mjs
type nul > config\production.mjs

:: 创建types目录及文件
mkdir types
type nul > types\prompt.d.ts
type nul > types\search.d.ts
type nul > types\logger.d.ts

:: 创建tests目录及子目录
mkdir tests\unit\core
mkdir tests\unit\services
mkdir tests\integration\prompt
mkdir tests\integration\search

cd ..

echo 目录结构创建完成！
pause